package cn.shop.transcation.order.entity;


import cn.shop.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigDecimal;

@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class OrderReward extends BaseEntity {

    /**
     * 订单编号
     */
    private Long orderId;
    /**
     * 用户编号
     */
    private Long userId;
    /**
     * 奖励金额
     */
    private BigDecimal amount;

    /**
     * 奖励类型 0-充值，1-提现，2-交易
     */
    private Integer type;
    @TableField(exist = false)
    private Boolean risk;
    @TableField(exist = false)
    private String webAccount;

}
